/**
 * Created by 小敏哥 on 2018/1/9.
 */
import {
    CAR_LIST
} from "../actions/actionsTypes";

export default function addCarReducer(state = {}, action) {
    switch (action.type) {
        case CAR_LIST:
            return Object.assign({}, state, {carList: action.data});
        default:
            return state;
    }
}